-- GENERATED SPELL FOR [Morcrush Shardling] --


function spell0_22344(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(34970,pUnit)
pUnit:RegisterEvent('Sorts_22344', 625, 1)
end

function spell1_22344(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_22344', 10311, 1)
end

function Sorts_22344(pUnit, Event)
local choix_sorts_22344 = math.random(0, 1)
if choix_sorts_22344 == 0 then
pUnit:RegisterEvent('spell0_22344', 1, 1)
end
if choix_sorts_22344 == 1 then
pUnit:RegisterEvent('spell1_22344', 1, 1)
end
end

function mob22344_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22344', math.random(1500, 3000), 1)
end

function mob22344_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22344_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22344_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22344, 1, 'mob22344_Action')
RegisterUnitEvent(22344, 2, 'mob22344_Leave')
RegisterUnitEvent(22344, 3, 'mob22344_Kill')
RegisterUnitEvent(22344, 4, 'mob22344_Die')
